﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTop.master" AutoEventWireup="true"
    CodeFile="news.aspx.cs" Inherits="news" %>

<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" id="allintable2">
        <tr>
            <td valign="top">
                <div id="alltitle">
                    最新消息</div>
                <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                    <ItemTemplate>
                        <a href='<%#String.Format("news-in.aspx?id={0}", DataBinder.Eval(Container,"DataItem.PostId"))%>'>
                        <div class="photodown">
                            <asp:Literal ID="ltlImg" runat="server"></asp:Literal><br />
                            <asp:Literal ID="ltlDate" runat="server"></asp:Literal>
                            <asp:Literal ID="ltlTitle" runat="server"></asp:Literal>
                        <%--<img src="image/pp09.jpg" width="163" height="111" border="0" /><br />
          <div class="photo-day">2012.02.02</div>
         <div class="news-title2">該消息的標題文字超開心的上課情況</div>--%>
        </div></a> 
                    </ItemTemplate>
                </asp:Repeater>                  
            </td>
        </tr>
        <tr>
            <td align="center">
                <div id="numberpage">
                    <Webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="numberpage" HorizontalAlign="center"
                OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox" PageSize="8" ShowPrevNext="false"
                ShowPageIndexBox="Never" ShowFirstLast="false" NumericButtonTextFormatString="<aa>{0}</aa> <bb>|</bb> "/>
                </div>
            </td>
        </tr>
    </table>
    <script src="Scripts/hideNumberPageSplit.js" type="text/javascript"></script>
</asp:Content>
